package com.soa.ws2http.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * GatewayWebserviceApiParam entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "gateway_webservice_api_param", schema = "public")
public class GatewayWebserviceApiParam implements java.io.Serializable {

	// Fields

	private String id;
	private GatewayWebserviceApi gatewayWebserviceApi;
	private String paramName;
	private String paramValue;

	// Constructors

	/** default constructor */
	public GatewayWebserviceApiParam() {
	}

	/** minimal constructor */
	public GatewayWebserviceApiParam(String id) {
		this.id = id;
	}

	/** full constructor */
	public GatewayWebserviceApiParam(String id,
			GatewayWebserviceApi gatewayWebserviceApi, String paramName,
			String paramValue) {
		this.id = id;
		this.gatewayWebserviceApi = gatewayWebserviceApi;
		this.paramName = paramName;
		this.paramValue = paramValue;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "webservice_api_id")
	public GatewayWebserviceApi getGatewayWebserviceApi() {
		return this.gatewayWebserviceApi;
	}

	public void setGatewayWebserviceApi(
			GatewayWebserviceApi gatewayWebserviceApi) {
		this.gatewayWebserviceApi = gatewayWebserviceApi;
	}

	@Column(name = "param_name")
	public String getParamName() {
		return this.paramName;
	}

	public void setParamName(String paramName) {
		this.paramName = paramName;
	}

	@Column(name = "param_value")
	public String getParamValue() {
		return this.paramValue;
	}

	public void setParamValue(String paramValue) {
		this.paramValue = paramValue;
	}

}